﻿@model CodeCamp.Models.EventMgmt.EventMgmtUserViewModel

@using (Html.BeginForm())
{
    @Html.HiddenFor(model => model.ProviderUserKey)
    @Html.ValidationSummary(true)
    <table>
    <tr>
    <td class="display-label">Username</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.Username)
    </td>
    </tr>

    <tr>
    <td class="display-label">PresenterName</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.PresenterName)
    </td>
    </tr>

    <tr>
    <td class="display-label">PresenterIdentityClaim</td>
    <td class="display-field">
        @*@Html.DisplayFor(model => model.PresenterIdentityClaim)*@
    </td>
    </tr>

    <tr>
    <td class="editor-label">
        @Html.LabelFor(model => model.UserEmailAddress)
    </td>
    <td class="editor-field">
        @Html.EditorFor(model => model.UserEmailAddress)
        @Html.ValidationMessageFor(model => model.UserEmailAddress)
    </td>
    </tr>

    <tr>
    <td class="display-label">PresenterEmailAddress</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.PresenterEmailAddress)
    </td>
    </tr>

    <tr>
    <td class="display-label">UserCreationDate</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.UserCreationDate)
    </td>
    </tr>

    <tr>
    <td class="display-label">LastActivityDate</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.LastActivityDate)
    </td>
    </tr>

    <tr>
    <td class="display-label">LastLoginDate</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.LastLoginDate)
    </td>
    </tr>

    <tr>
    <td class="display-label">IsLockedOut</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.IsLockedOut)
    </td>
    </tr>

    <tr>
    <td class="display-label">IsOnline</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.IsOnline)
    </td>
    </tr>

    <tr>
    <td class="display-label">PresenterId</td>
    <td class="display-field">
        @Html.DisplayFor(model => model.PresenterId)
    </td>
    </tr>

    <tr>
    <td class="display-label">Roles</td>
    <td class="display-field">
@*    @foreach (string role in Model.RolesAvailable)
    {
        if (Model.Roles4User.Contains(role))
        {
            <input type="checkbox" name="roles" value="@role" checked="checked" /> @role<br />
        }
        else
        {
            <input type="checkbox" name="roles" value="@role" /> @role<br />
        }
    }
*@
    </td>
    </tr>

    <tr>
    <td colspan="2">
        <input type="submit" value="Save" />
    </td>
    </tr>
    </table>
}
